package com.movie.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.movie.admin.entity.Movie;
import com.movie.admin.mapper.MovieMapper;
import com.movie.admin.service.MovieService;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class MovieServiceImpl extends ServiceImpl<MovieMapper, Movie> implements MovieService {
    @Override
    public List<Movie> findTop10ByOrderByAverageRatingDesc() {
        return this.baseMapper.findTop10ByOrderByAverageRatingDesc();
    }
} 